<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>{$Think.lang.mlv_edit_page_title} - {$Think.lang.cfg_website}</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-metro.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="{$NOW_THEME_URL}/Assets/css/themes/{:session('skin')}.css" rel="stylesheet" type="text/css" id="style_color"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="favicon.ico" />
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN HEADER -->
	<include file="Public:header" />
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar nav-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->        
			<ul class="page-sidebar-menu">
            	<li>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler hidden-phone"></div>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
				</li>
                {$menu_tree}
            </ul>
			<!-- END SIDEBAR MENU -->
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div id="portlet-config" class="modal hide">
				<div class="modal-header">
					<button data-dismiss="modal" class="close" type="button"></button>
					<h3>portlet Settings</h3>
				</div>
				<div class="modal-body">
					<p>Here will be a configuration form</p>
			  </div>
			</div>
			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- BEGIN PAGE CONTAINER-->
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->   
			  <div class="row-fluid">
					<div class="span12">
                    	<div class="clear">&nbsp;</div>                        
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="__APP__">{$Think.lang.cfg_page_home}</a> 
								<span class="icon-angle-right"></span>
							</li>
							<li>
								<a href="__URL__">{$Think.lang.mlv_page_title}</a> 
								<span class="icon-angle-right"></span>
						  </li>
							<li><a href="#">{$Think.lang.mlv_edit_page_title}</a></li>
						</ul>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN VALIDATION STATES-->
						<div class="portlet box purple">
							<div class="portlet-title">
								<div class="caption"><i class="icon-plus"></i>{$Think.lang.mlv_edit_page_title}</div>
								<div class="tools">
									<a href="javascript:;" class="collapse"></a>
								</div>
							</div>
							<div class="portlet-body form">
								<!-- BEGIN FORM-->
								
									<div class="alert alert-error hide">
										<button class="close" data-dismiss="alert"></button>
										{$Think.lang.cfg_form_err_allform}
									</div>
									<div class="alert alert-success hide">
										<button class="close" data-dismiss="alert"></button>
										{$Think.lang.cfg_form_ok_allform}
									</div>
                                    
                                    <ul class="nav nav-tabs">
                                        <li class="active">
                                        	<a href="#tab_1_1" data-toggle="tab">
                                        		{$Think.lang.mlv_tab_basic}
                                        	</a>
                                        </li>
                                        <li>
                                        	<a href="#tab_1_2" data-toggle="tab">
                                        		{$Think.lang.mlv_tab_mem_list}
                                        	</a>
                                        </li>
                                    </ul>
                                    
                                    <div class="tab-content">
                                    <!--tab1 start-->
                                    <div class="tab-pane active" id="tab_1_1">
									<form action="__URL__/add" method="post" id="adcontentForm" class="form-horizontal">
                                    <input type="hidden" name="id" value="{$atlas.id}"/>
                                    <div class="control-group">
										<label class="control-label">{$Think.lang.mlv_form_ele_title}
                                        <span class="required">*</span></label>
										<div class="controls">
											<input type="text" name="title" data-required="1" class="span6 m-wrap"
											value="{$atlas.title}"/>
										</div>
									</div>
									
									 <div class="control-group">
										<label class="control-label">{$Think.lang.mlv_form_ele_condition}
                                        <span class="required">*</span></label>
										<div class="controls">
											<input type="text" name="condition" data-required="1" class="span6 m-wrap"
											value="{$atlas.condition}"/>
										</div>
									</div>

									<div class="form-actions">
										<button type="submit" class="btn purple">{$Think.lang.cfg_form_ele_submit}</button>
										<button type="reset" class="btn">{$Think.lang.cfg_form_ele_reset}</button>
									</div>
								</form>
								<!-- END FORM-->
								
								</div>
								<!--tab1 end-->
								
								<!--tab2 start-->
                                <div class="tab-pane" id="tab_1_2">

                                
                                <div class="row-fluid">
                                  <div class="span6">
                                    
                                  </div>
                                </div>
								<table class="table table-striped table-bordered table-hover table-condensed flip-content" id="userList">
									
								</table>
                                
                                <div class="row-fluid">
                                  <div class="span6">
                                    <div class="dataTables_info" id="pageRecord">
                                    </div>
                                  </div>
                                  <div class="span6">
                                    <div class="dataTables_paginate paging_bootstrap pagination">
                                      <ul id="pagePaginate">
                                        
                                      </ul>
                                    </div>
                                  </div>
                                </div>
                                
                                
                                </div>
                                <!--tab2 end-->
							</div>
							
							</div>
						</div>
						<!-- END VALIDATION STATES-->
					</div>
				</div>
				<!-- END PAGE CONTENT-->         
		  </div>
			<!-- END PAGE CONTAINER-->
		</div>
		<!-- END PAGE -->

	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<include file="Public:footer" />
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<script src="__PUBLIC__/Js/jquery.min.js" type="text/javascript"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>   
	<script src="{$NOW_THEME_URL}/Assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<script src="{$NOW_THEME_URL}/Assets/plugins/excanvas.min.js"></script>
	<script src="{$NOW_THEME_URL}/Assets/plugins/respond.min.js"></script>  
	<![endif]-->  
	<script src="{$NOW_THEME_URL}/Assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
	<!-- END CORE PLUGINS -->
	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
	<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/jquery-validation/dist/additional-methods.min.js"></script>
    <script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/jquery-validation/localization/messages_zh.js"></script>
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/data-tables/jquery.dataTables.js"></script>
	<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/plugins/data-tables/DT_bootstrap.js"></script>
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL SCRIPTS -->
	<script src="{$NOW_THEME_URL}/Assets/scripts/app.js"></script>
	<script src="{$NOW_THEME_URL}/Assets/scripts/Mgroup/add.js"></script>
	<script src="{$NOW_THEME_URL}/Assets/scripts/common/commonList.js"></script> 
	<!-- END PAGE LEVEL STYLES -->    
	<script type="text/javascript">
		var ABS_URL_Theme = "{$NOW_THEME_URL}/";
		var vMessage = {};//分类添加表单的验证提示语言包
		vMessage.module_required     = '{$Think.lang.lan_form_validata_module_required}';
		vMessage.key_required        = '{$Think.lang.lan_form_validata_key_required}';	
		vMessage.key_regex           = '{$Think.lang.lan_form_validata_key_regex}';	
		
		
		var ABS_URL_Theme = "{$NOW_THEME_URL}/";
		var list_itf = {};
		list_itf.no_record = '{$Think.lang.cfg_list_itf_no_record}';
		list_itf.rpp = '{$Think.lang.cfg_list_itf_rpp}';
		list_itf.search = '{$Think.lang.cfg_list_itf_search}';
		list_itf.search_tis = '{$Think.lang.cfg_list_itf_search_tis}';
		list_itf.recordall = '{$Think.lang.cfg_list_itf_recordall}';
		list_itf.recordnum = '{$Think.lang.cfg_list_itf_recordnum}';
		list_itf.papename = '{$Think.lang.cfg_list_itf_papename}';
		list_itf.first = '{$Think.lang.cfg_list_itf_first}';
		list_itf.last = '{$Think.lang.cfg_list_itf_last}';
		list_itf.prev = '{$Think.lang.cfg_list_itf_prev}';
		list_itf.next = '{$Think.lang.cfg_list_itf_next}';
		
		var id = $('input[name=id]').val(); 
		jQuery(document).ready(function() {       
		   App.init();
		   //TableManaged.init('userList');
		   
			var listParam = {
				listId : 'userList',
				jsonUrl : '__URL__/userlist',
				//where : 'groupid='+id,
				pageNum : 10,
				nowPage : 1,
				orderName : id,//传递当前分组id
                orderDirection : "desc",
				colModel : [
					{
                        display : '<?=L("mlv_form_ele_userid")?>',
                        name : 'userid',
                        ordertable : false,
						myclass : 'center'
                    },
					{
                        display : '<?=L("mlv_form_ele_username")?>',
                        name : 'username',
                        ordertable : true,
						myclass : 'center'
                    },
                    {
                        display : '<?=L("mlv_form_ele_addtime")?>',
                        name : 'addtime',
                        ordertable : true,
						myclass : 'center'
                    },
					{
                        display : '<?=L("mlv_form_ele_isactive")?>',
                        name : 'isactive',
                        ordertable : false,
						myclass : 'center'
                    },
					{
                        display : '<?=L("cfg_form_ele_opreate")?>',
                        name : 'deal',
                        ordertable : false,
						myclass : 'center'
                    }
				]
			};
			
			commonList.init(listParam);

			$('.delAlone').live('click',function(){
				var id  = $(this).attr('data-id');
				var gid = $(this).attr('group-id');
				$.get('{$Think.const.__URL__}/delmemgroup/id/'+id+'/gid/'+gid);
				commonList.init(listParam);
			});

		});
	</script>
	<!-- END JAVASCRIPTS -->   
</body>
<!-- END BODY -->
</html>